home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 297_01 / prlex.h < prev    next >
Text File  |  1980-01-01  |  958b  |  36 lines

  1. /* prlex.h */
  2. #define STRING_QUOTE '"'
  3. #define CONS '|'
  4. #define CONS_STR "|"
  5.  
  6. /* note that the following are > the ascii code of the greatest char */
  7. #define TOKEN_INT 300
  8. #define TOKEN_REAL 301
  9. #define TOKEN_ATOM 302
  10. #define TOKEN_VAR 303
  11. #define TOKEN_STRING 304
  12. #define TOKEN_CHAR 305
  13.  
  14. #define SCAN_ERR 400
  15.  
  16. #define MAX_VAR 128 /* a little arbitrary */
  17. #define VARBUFSIZE 500 /* total length of names of variables in a clause */
  18.  
  19. /* char types */
  20. #define CC 0 /* non space control char */
  21. #define SP 1 /* space */
  22. #define AL 2 /* alpha lower case */
  23. #define AU 3 /* alpha upper case */
  24. #define DI 4 /* digit */
  25. #define BR 5 /* bracket ( ) */
  26. #define QU 6 /* double quote " */
  27. #define US 7 /* underscore _ */
  28. #define SI 8 /* + or - */
  29. #define QE 9 /* question mark ? */
  30. #define BA 10 /* bar ie |*/
  31. #define AP 11 /* apostrophe ' */
  32. #define OT 12 /* other */
  33.  
  34. #define CHAR int /* type returned by getc */
  35. /* end of file */
  36.